package com.lyw.forum.pojo.request;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ArticleUpdateRequest {
    @NotNull(message = "帖子id不能为空")
    @Min(1)      // 最小值为 1
    private Integer id;
    @NotNull(message = "标题不能为空")
    private String title;
    @NotNull(message = "内容不能为空")
    private String content;
}
